package com.openvas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 操作系统对象 table_operating_system
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableOperatingSystem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 操作系统所有者 */
    @Excel(name = "操作系统所有者")
    private String owner;

    /** 操作系统名称 */
    @Excel(name = "操作系统名称")
    private String name;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modificationTime;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 最新威胁程度 */
    @Excel(name = "最新威胁程度")
    private Long latestSeverity;

    /** 最高威胁程度 */
    @Excel(name = "最高威胁程度")
    private Long highestSeverity;

    /** 平均威胁程度 */
    @Excel(name = "平均威胁程度")
    private Long averageSeverity;

    /** 主机数 */
    @Excel(name = "主机数")
    private Integer hosts;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setModificationTime(Date modificationTime) 
    {
        this.modificationTime = modificationTime;
    }

    public Date getModificationTime() 
    {
        return modificationTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLatestSeverity(Long latestSeverity) 
    {
        this.latestSeverity = latestSeverity;
    }

    public Long getLatestSeverity() 
    {
        return latestSeverity;
    }
    public void setHighestSeverity(Long highestSeverity) 
    {
        this.highestSeverity = highestSeverity;
    }

    public Long getHighestSeverity() 
    {
        return highestSeverity;
    }
    public void setAverageSeverity(Long averageSeverity) 
    {
        this.averageSeverity = averageSeverity;
    }

    public Long getAverageSeverity() 
    {
        return averageSeverity;
    }
    public void setHosts(Integer hosts) 
    {
        this.hosts = hosts;
    }

    public Integer getHosts() 
    {
        return hosts;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("owner", getOwner())
            .append("name", getName())
            .append("comment", getComment())
            .append("creationTime", getCreationTime())
            .append("modificationTime", getModificationTime())
            .append("type", getType())
            .append("latestSeverity", getLatestSeverity())
            .append("highestSeverity", getHighestSeverity())
            .append("averageSeverity", getAverageSeverity())
            .append("hosts", getHosts())
            .append("userName", getUserName())
            .toString();
    }
}
